<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<body>
<?php
		include"conn.php";
     if (isset($_GET["sid"]))//从地址栏上获得要删除的人的ID
	 {
	  $id=$_GET["sid"];
	  /*$conn=@mysql_connect(SAE_MYSQL_HOST_M.':'.SAE_MYSQL_PORT,SAE_MYSQL_USER,SAE_MYSQL_PASS);
	  
         mysql_select_db(SAE_MYSQL_DB,$conn);
         mysql_query("set names utf8");*/
	   $str="delete from mj where id=$id";
	   if (mysql_query($str,$conn))
		   {
			   echo '<script type="text/javascript">
			      alert("删除成功！");
				  window.location.href="index.php";
				  </script>';
		   }
		   else
		   {
			 echo '<script type="text/javascript">
			      alert("删除失败！");
				  window.location.href="index.php";
				  </script>';
		  }
	  }
?>
</body>
</html>
